<template name="groupList">
	<view class="list">
		<block v-for="(item,index) in list" :key="index">
			<groupItem :item="item"></groupItem>
		</block>
	
	</view>
</template>

<script>
	import {mapState,mapGetters,mapMutation,mapActions} from "vuex";
	import groupItem from "@/components/groupList/groupItem.vue";
	export default{	
		components:{groupItem},
		name:'groupList',		//组件名称
		// 传递参数
		props:{
			list:{
				type:Array,
				default:null
			}
		},
		// 组件参数
		data(){
			return {
				data1: 'value1'
			}
		},
		// 组件方法
		methods:{
			mtd1(){
				
			}
		}
	}
</script>

<style lang="less" scoped>
	.list{
		display: flex;
		flex-direction: column;
		padding: 15upx 18upx;
		background-color: #F7F7F7;
	}
</style>
